<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="cache-control" content="no-cache">
<title>收藏夹首页</title>
<style type="text/css">
	span{
		display: block;
		color: red;
	}
</style>
</head>
<body>
	<h2>文件夹</h2>
	<span>${result }</span>
	<c:forEach items="${folders }" var="folder">
		<a href="linkIndex?folderId=${folder.folderId }&uid=${uid}">${folder.name }</a> <a href="deleteFolder?folderId=${folder.folderId }&uid=${uid}">删除</a><br/>
	</c:forEach>
	<div>
		<h2>推荐链接</h2>
		<c:forEach items="${recommends }" var="recommend">
			${recommend.link }<br/>
		</c:forEach>
	</div>
	<div>
		<h2>推荐的用户</h2>
		<c:forEach items="${recommendUsers }" var="user">
			${user.userId }&nbsp;&nbsp;<i>引用包含链接的次数：${user.sameLinkCount }</i><br/>
		</c:forEach>
	</div>
	<div>
		<form action="addFolder" method="post">
			文件夹名称：<input type="text" name="name"/><input type="submit" value="添加"/>
			<input type="hidden" name="uid" value="${uid }"/>
		</form>
	</div>
</body>
</html>